﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 药品限量统计表
    /// </summary>
    public partial class DrugLimitDetail
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 药品内码
        /// </summary>
        public int DrugId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Quantity { get; set; }
        /// <summary>
        /// 包装因子
        /// </summary>
        public int PackFactor { get; set; }
        /// <summary>
        /// 包装单位
        /// </summary>
        public int PackUnit { get; set; }
        /// <summary>
        /// 来源 1 门诊 2 住院 3 护士站
        /// </summary>
        public int Source { get; set; }
        /// <summary>
        /// 患者Id
        /// </summary>
        public long PatId { get; set; }
        /// <summary>
        /// 关联医嘱/处方明细Id
        /// </summary>
        public long RecordId { get; set; }
        /// <summary>
        /// 医生Id
        /// </summary>
        public int DoctorId { get; set; }
        /// <summary>
        /// 开立科室Id
        /// </summary>
        public int DeptId { get; set; }
        /// <summary>
        /// 病区Id
        /// </summary>
        public int? WardId { get; set; }
        /// <summary>
        /// 医院编码
        /// </summary>
        public int HospitalId { get; set; }
        /// <summary>
        /// 0 失效 1 有效
        /// </summary>
        public bool? Status { get; set; }
        /// <summary>
        /// 锁定状态 1 已计入限量 2 自动释放限量 3 手动释放限量
        /// </summary>
        public int LockStatus { get; set; }
        /// <summary>
        /// 失效时间
        /// </summary>
        public DateTime? LockEndTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 释放人 
        /// </summary>
        public int? ReleaseId { get; set; }
        /// <summary>
        /// 释放原因 
        /// </summary>
        public string? ReleaseReason { get; set; }
        /// <summary>
        /// 释放时间 
        /// </summary>
        public DateTime? ReleaseTime { get; set; }
    }
}
